package com.botu.springcloudsentinelannotion.controller;

import com.botu.springcloudsentinelannotion.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hanzeyao
 * @Date: 2019/12/7 14:24
 * @Description:
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test/{str}")
    public String testFolw(@PathVariable String str){
        return testService.doSomething(str);
    }

    @GetMapping("/test1/{str}")
    public String testGegrade(@PathVariable String str){
        return testService.doSomething1(str);
    }

}
